//
//  MineMianViewController.m
//  TravelToHelp
//
//  Created by lanou3g on 15/11/9.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "MineMianViewController.h"

@interface MineMianViewController ()

@end

@implementation MineMianViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];

    [self addSubViews];
    [self setNavviBar];
}

- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = NO;
}

- (void)setNavviBar
{
    self.navigationItem.title = @"免责声明";
    
  UIBarButtonItem *leftButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"backNew.png"] style:(UIBarButtonItemStylePlain) target:self action:@selector(actionLeftButton:)];
 
  self.navigationItem.leftBarButtonItem = leftButton;
}

- (void)actionLeftButton:(UIBarButtonItem *)leftButton
{
    [self.navigationController popViewControllerAnimated:YES];
}



- (void)addSubViews
{
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 100)];
    imageV.image = [UIImage imageNamed:@"mine_mianback.jpg"];
    [self.view addSubview:imageV];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20, 60, kScreenWidth - 40, kScreenHeight - 100)];
    label.text = @"        本app所有内容，包括文字、图片、音频、视频、软件、程序、以及版式设计等均在网上搜集。\n        访问者可将本app提供的内容或服务用于个人学习、研究或欣赏，以及其他非商业性或非盈利性用途，但同时应遵守著作权法及其他相关法律的规定，不得侵犯本app及相关权利人的合法权利。除此以外，将本app任何内容或服务用于其他用途时，须征得本app及相关权利人的书面许可，并支付报酬。\n        本app内容原作者如不愿意在本app刊登内容，请及时通知本app，予以删除。\n      电话：15560101101\n      电子邮箱：15560101101@163.com";
    label.textColor = [UIColor orangeColor];
    label.numberOfLines = 0;
    [self.view addSubview:label];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
